package com.bsj.power.common.def.entity.exp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yinhao
 * @version 1.0
 * @description 课程信息
 * @date 2024/5/31
 */
@Data
@NoArgsConstructor
@TableName(value = "tab_course")
public class Course extends Model<Course> {

    /**
     * 主键ID
     */
    @TableId(value = "course_id" ,type = IdType.AUTO)
    private Long courseId;
    /**
     * 课程名称
     */
    @TableField(value = "course_name")
    private String courseName;
    /**
     * 课程内容
     */
    @TableField(value = "content")
    private String content;
    /**
     * 课程学分
     */
    @TableField(value = "credit")
    private Integer credit;
    /**
     * 课程时长(单位分钟)
     */
    @TableField(value = "duration")
    private Integer duration;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
}
